<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      html,
      body {
        font-size: 10px;
      }
    </style>
  </head>
  <body>
    <!-- 如何设置窄边框，0.5px边框 -->
    <!-- 如何设置小字体，6px字体 -->
    <p style="font-size: 10px; transform: scale(0.5); border: 1px solid #000">基础像素</p>
    <p style="font-size: 0.16rem; border: 0.1rem solid #000">rem像素</p>
  </body>
</html>
